<script>
import store from '@/store'
export default {
  created () {
    // 调用API从本地缓存中获取数据
    const logs = wx.getStorageSync('logs') || []
    logs.unshift(Date.now())
  // temp store suid
    wx.setStorageSync('sid', 2)
    wx.setStorageSync('logs', logs)
    store.commit('storeUpdateSid',2)
    // store.commit('storeUpdateShareToken','655')
    // let extConfig = wx.getExtConfigSync? wx.getExtConfigSync(): {}
    // store.commit('storeUpdateSid',extConfig.sid)

    console.log('app created and cache logs by setStorageSync')
  }
}
</script>

<style lang="scss">
  @import "styles/common";
</style>
<!--<style>-->
<!--.container {-->
  <!--height: 100%;-->
  <!--display: flex;-->
  <!--flex-direction: column;-->
  <!--align-items: center;-->
  <!--justify-content: space-between;-->
  <!--/* padding: 200rpx 0; */-->
  <!--box-sizing: border-box;-->
<!--}-->
<!--/* this rule will be remove */-->
<!--* {-->
  <!--transition: width 2s;-->
  <!-- -moz-transition: width 2s;-->
  <!-- -webkit-transition: width 2s;-->
  <!-- -o-transition: width 2s;-->
<!--}-->


<!--.flex-wrp{-->
  <!--display: flex;-->
<!--}-->
<!--.flex-tab{-->
  <!--flex-flow: row nowrap;-->
  <!--justify-content: space-around;-->
  <!--align-items: stretch;-->
<!--}-->
<!--.flex-item{-->
  <!--flex-grow: 1;-->
  <!--text-align: center;-->
<!--}-->
<!--</style>-->
